package com.itheima.MutiTest;

import java.util.Arrays;

public class DemoTest {
    public static void main(String[] args) {
      /*  int[] a = {1,2,34,55};

        int index = 2;

        for (; index < a.length-1; index++) {
            a[index] = a[index+1];
        }
        a[index] = 0;

        System.out.println(Arrays.toString(a));



        int rrr  = 128;
        byte aa = (byte) rrr;

        System.out.println(aa);*/


      Animal animal = new Dog();
      Animal.method();

      useDog(new Cat());

    }

    public static void useDog(Animal animal){
        animal.eat();
    }
}
